package com.lh0811.forge.pserv.uacs.server.component.data_scope.annotation.handler;


import com.lh0811.forge.pserv.uacs.api.component.data_scope.DataScope;

public class DataScopeThreadLocalHandler {

    private static final ThreadLocal<DataScope> threadLocalMap = new ThreadLocal<>();

    public static void setDataScope(DataScope dataScope) {
        threadLocalMap.set(dataScope);
    }

    public static DataScope getDataScope() {
        return threadLocalMap.get();
    }

    public static void cleanDataScope() {
        threadLocalMap.remove();
    }

}
